package com.oocl.chatroom.servermanage.response;

import java.io.IOException;
import java.io.OutputStream;

import org.jdom.Element;
import org.jdom.output.XMLOutputter;

public class Response {
	OutputStream out;
	
	public Response(OutputStream out){
		this.out = out;
	}
	
	
	public void print(Element ele){
		XMLOutputter ot1 = new XMLOutputter();
		try {
			out.write("HTTP/1.1 200 OK\r\n\r\n".getBytes());
			ot1.output(ele, out);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
}
